<template>
  <div>
    <div class="top">
      <label style="line-height: 45px;">查询类型</label>
      <div>
            <el-radio-group v-model="radio1" fill="#22ac38" @change="formRouter()">
              <el-radio-button label="模糊查询" ></el-radio-button>
              <el-radio-button label="精确查询" ></el-radio-button>
            </el-radio-group>


      </div>
    </div>
    <router-view>

    </router-view>
  </div>
</template>

<script>
  export default{
  	name:'QueryRefound',
  	data(){
  		return{
        radio1:'模糊查询'
  		}
  	},

    methods:{
      formRouter(){
        console.log(this.radio1)
        if(this.radio1!='模糊查询'){
          this.$router.push('/QueryFoundForm2')
        }else{
          this.$router.push('/Refound')
        }
      },

    },

  }
</script>

<style scoped>
  .el-radio-group{
    margin-left:20px;
    
  }
  .top{
  display: flex;
  margin-top: 20px;

  }
</style>
